﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ForumGroup.aspx.cs" Inherits="Pages_ForumGroup" MasterPageFile="~/Admin/MasterPage.master" Title="论坛组管理" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="toolbar">
        <XCL:LinkBox ID="lbAdd" runat="server" BoxHeight="1345px" BoxWidth="440px" Url="ForumGroupForm.aspx"
            IconLeft="../images/icons/icon005a2.gif"><b>添加论坛组</b></XCL:LinkBox>
        关键字：<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" />
    </div>
    <asp:GridView ID="gvForumGroup" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" CssClass="m_table" PageSize="20" CellPadding="0" GridLines="None" EnableModelValidation="True">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" SortExpression="ID" InsertVisible="False" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" CssClass="key" />
            </asp:BoundField>
            <asp:BoundField DataField="SiteID" HeaderText="站点编号" SortExpression="SiteID" />
            <asp:BoundField DataField="RadminID" HeaderText="管理员编号" SortExpression="RadminID" />
            <asp:BoundField DataField="Name" HeaderText="名称" SortExpression="Name" />
            <asp:BoundField DataField="SystemName" HeaderText="名称" SortExpression="SystemName" />
            <asp:BoundField DataField="Type" HeaderText="类型" SortExpression="Type" />
            <asp:BoundField DataField="Color" HeaderText="颜色" SortExpression="Color" />
            <asp:BoundField DataField="Image" HeaderText="图片" SortExpression="Image" />
            <asp:BoundField DataField="LowerScore" HeaderText="低分数" SortExpression="LowerScore" />
            <asp:BoundField DataField="UpperScore" HeaderText="上" SortExpression="UpperScore" />
            <asp:BoundField DataField="AllowTheme" HeaderText="允许主题" SortExpression="AllowTheme" />
            <asp:BoundField DataField="AllowReply" HeaderText="允许评论" SortExpression="AllowReply" />
            <asp:BoundField DataField="AllowSearch" HeaderText="允许搜索" SortExpression="AllowSearch" />
            <asp:BoundField DataField="AllowUserInfo" HeaderText="允许用户信息" SortExpression="AllowUserInfo" />
            <asp:BoundField DataField="AllowPanel" HeaderText="允许面板" SortExpression="AllowPanel" />
            <asp:BoundField DataField="AllowNickName" HeaderText="允许昵称" SortExpression="AllowNickName" />
            <asp:BoundField DataField="AllowVisit" HeaderText="允许访问" SortExpression="AllowVisit" />
            <asp:BoundField DataField="AllowHeadImage" HeaderText="允许头部图片" SortExpression="AllowHeadImage" />
            <asp:BoundField DataField="AllowFace" HeaderText="允许头像" SortExpression="AllowFace" />
            <asp:BoundField DataField="AllowAutograph" HeaderText="允许自动图形" SortExpression="AllowAutograph" />
            <asp:BoundField DataField="Verify" HeaderText="验证" SortExpression="Verify" />
            <asp:BoundField DataField="AllowEditUser" HeaderText="允许编辑用户" SortExpression="AllowEditUser" />
            <asp:BoundField DataField="AllowForbidUser" HeaderText="允许禁止用户" SortExpression="AllowForbidUser" />
            <asp:BoundField DataField="AllowEditForum" HeaderText="允许编辑论坛" SortExpression="AllowEditForum" />
            <asp:BoundField DataField="AllowVerfyPost" HeaderText="允许审核发布" SortExpression="AllowVerfyPost" />
            <asp:BoundField DataField="AllowDel" HeaderText="允许删除" SortExpression="AllowDel" />
            <asp:BoundField DataField="AllowEdit" HeaderText="允许编辑" SortExpression="AllowEdit" />
            <asp:BoundField DataField="Hide" HeaderText="隐藏" SortExpression="Hide" />
            <asp:BoundField DataField="RemoveTheme" HeaderText="移除主题" SortExpression="RemoveTheme" />
            <asp:BoundField DataField="MoveTheme" HeaderText="移动主题" SortExpression="MoveTheme" />
            <asp:BoundField DataField="TopTheme" HeaderText="顶部主题" SortExpression="TopTheme" />
            <asp:BoundField DataField="BrightTheme" HeaderText="明亮主题" SortExpression="BrightTheme" />
            <asp:BoundField DataField="UpOrDownTheme" HeaderText="上或下主题" SortExpression="UpOrDownTheme" />
            <asp:BoundField DataField="BestTheme" HeaderText="最好主题" SortExpression="BestTheme" />
            <asp:BoundField DataField="prop1" HeaderText="属性1" SortExpression="prop1" />
            <asp:BoundField DataField="prop2" HeaderText="属性2" SortExpression="prop2" />
            <asp:BoundField DataField="prop3" HeaderText="属性3" SortExpression="prop3" />
            <asp:BoundField DataField="prop4" HeaderText="属性4" SortExpression="prop4" />
            <asp:BoundField DataField="AddUser" HeaderText="添加用户" SortExpression="AddUser" />
            <asp:BoundField DataField="AddTime" HeaderText="添加时间" SortExpression="AddTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="ModifyUser" HeaderText="修改用户" SortExpression="ModifyUser" />
            <asp:BoundField DataField="ModifyTime" HeaderText="修改时间" SortExpression="ModifyTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="OrderFlag" HeaderText="订单标记" SortExpression="OrderFlag" />
            <asp:BoundField DataField="BackupNo" HeaderText="备份编号" SortExpression="BackupNo" />
            <asp:BoundField DataField="BackupOperator" HeaderText="备份操作者" SortExpression="BackupOperator" />
            <asp:BoundField DataField="BackupTime" HeaderText="备份时间" SortExpression="BackupTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupMemo" HeaderText="备份注释" SortExpression="BackupMemo" />
            <XCL:LinkBoxField HeaderText="编辑" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="ForumGroupForm.aspx?ID={0}" Height="1345px" Text="编辑" Width="440px" Title="编辑论坛组">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </XCL:LinkBoxField>
            <asp:TemplateField ShowHeader="False" HeaderText="删除">
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                        OnClientClick='return confirm("确定删除吗？")' Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            没有符合条件的数据！
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="NXCMS.CMS.ForumGroup"
        DeleteMethod="Delete" EnablePaging="True" OldValuesParameterFormatString="original_{0}"
        SelectCountMethod="SearchCount" SelectMethod="Search" SortParameterName="orderClause"
        TypeName="NXCMS.CMS.ForumGroup">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtKey" Name="key" PropertyName="Text" Type="String" />
            <asp:Parameter Name="orderClause" Type="String" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <XCL:GridViewExtender ID="gvExt" runat="server">
    </XCL:GridViewExtender>
</asp:Content>